<?php

	//调用文件AdminService.class.php, CatalogService.class.php
	require_once 'AdminService.class.php';
	require_once 'CatalogService.class.php';
	
	$adminService = new Adminservice();
	//修改用户名和密码
	$name = $_POST['username'];
	$password = $_POST['password'];
	$adminService->changeConfig($name, $password);

		
	//修改导航栏
	$catalog = $_POST['catalog'];

	$catalogService = new CatalogService();
	 $catalogService->changeConfig($catalog);
	
	//执行完毕，界面跳转回去，并发送成功的信号
	header('Location: configManage.php?flag=success');	
?>
